package com.yunchang.springboot.models.DO;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunchang.springboot.base.Column;
import com.yunchang.springboot.base.Id;
import com.yunchang.springboot.base.Table;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 采购item（马帮api）
 * purchase_data_item
 * @author WeiziPlus
 * @date 2019-09-03 09:03:12
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table("caravan_purchase_data_item")
public class CaravanPurchaseDataItem implements Serializable {
    /**
     */
    @Id("id")
    private Long id;

    /**
     */
    @Column("purchase_id")
    private String purchaseId;

    /**
     */
    @Column("date")
    private String date;

    /**
     * 商品id
     */
    @Column("stock_id")
    private String stockId;

    /**
     * sku
     */
    @Column("stock_sku")
    private String stockSku;

    /**
     * sku中文名
     */
    @Column("stock_sku_name_cn")
    private String stockSkuNameCn;

    /**
     * 采购数量
     */
    @Column("purchase_num")
    private Integer purchaseNum;

    /**
     * 已入库量
     */
    @Column("enter_warehouse_num")
    private Integer enterWarehouseNum;

    /**
     * 损耗量
     */
    @Column("wastage_num")
    private Integer wastageNum;

    /**
     * 采购单价
     */
    @Column("sell_price")
    private BigDecimal sellPrice;

    /**
     * 商品备注
     */
    @Column("remark")
    private String remark;

    /**
     * 运费单价
     */
    @Column("express_money")
    private BigDecimal expressMoney;

    /**
     */
    @Column("buyer_id")
    private String buyerId;

    /**
     * 采购员
     */
    @Column("buyer_name")
    private String buyerName;

    /**
     * 税前单价(税前总金额/采购数量)
     */
    @Column("pretax_unit_price")
    private BigDecimal pretaxUnitPrice;

    /**
     * 税前入库金额(税前单价*入库数量)
     */
    @Column("pretax_enter_warehouse_value")
    private BigDecimal pretaxEnterWarehouseValue;

    /**
     * 商品是否被删除 1、没有删除 2、已删除
     */
    @Column("is_delete")
    private String isDelete;

    @Column("create_time")
    private String createTime;

    /**
     * 处理状态0：新增 1：已生成借贷关系 2：已计算借贷数据
     */
    @Column("handle_status")
    private Integer handleStatus;

    private static final long serialVersionUID = 1L;
}